package com.nxu.entity;

public class Reservable {
   private int rid;
   private String  rdate;
   private int rmax;
   private int did;
   private String dname;
   private int cid;
   private String cname;
public int getRid() {
	return rid;
}
public void setRid(int rid) {
	this.rid = rid;
}
public String getRdate() {
	return rdate;
}
public void setRdate(String rdate) {
	this.rdate = rdate;
}
public int getRmax() {
	return rmax;
}
public void setRmax(int rmax) {
	this.rmax = rmax;
}
public int getDid() {
	return did;
}
public void setDid(int did) {
	this.did = did;
}
public String getDname() {
	return dname;
}
public void setDname(String dname) {
	this.dname = dname;
}
public int getCid() {
	return cid;
}
public void setCid(int cid) {
	this.cid = cid;
}
public String getCname() {
	return cname;
}
public void setCname(String cname) {
	this.cname = cname;
}
public Reservable(int rid, String rdate, int rmax, int did, String dname, int cid, String cname) {
	super();
	this.rid = rid;
	this.rdate = rdate;
	this.rmax = rmax;
	this.did = did;
	this.dname = dname;
	this.cid = cid;
	this.cname = cname;
}

public Reservable(String rid2, String rdate2, String rmax2, String cid2, String did2, String dname2, String cname2) {
	// TODO Auto-generated constructor stub
	rid = Integer.parseInt(rid2);
	rdate=rdate2;
	rmax=rmax2==null?0:Integer.parseInt(rmax2);
	cid=cid2==null?0:Integer.parseInt(cid2);
	did=did2==null?0:Integer.parseInt(did2);
	dname=dname2;
	cname=cname2;
	
}

public Reservable() {
	super();
	// TODO Auto-generated constructor stub
}
@Override
public String toString() {
	return "Reservable [rid=" + rid + ", rdate=" + rdate + ", rmax=" + rmax + ", did=" + did + ", dname=" + dname
			+ ", cid=" + cid + ", cname=" + cname + "]";
}
   


   
}